package com.frinder.base;

import java.util.Date;

/**
 * Created by frinder on 2017/11/7.
 */
public class PageWrapper<T> {

    private T target;

    private int page = 1;

    private int size = 10;

    private Date createTimeFrom;

    private Date createTimeTo;

    public T getTarget() {
        return target;
    }

    public void setTarget(T target) {
        this.target = target;
    }

    public int getPage() {
        return page;
    }

    public void setPage(int page) {
        this.page = page;
    }

    public int getSize() {
        return size;
    }

    public void setSize(int size) {
        this.size = size;
    }

    public Date getCreateTimeFrom() {
        return createTimeFrom;
    }

    public void setCreateTimeFrom(Date createTimeFrom) {
        this.createTimeFrom = createTimeFrom;
    }

    public Date getCreateTimeTo() {
        return createTimeTo;
    }

    public void setCreateTimeTo(Date createTimeTo) {
        this.createTimeTo = createTimeTo;
    }

    @Override
    public String toString() {
        return "PageWrapper{" +
                "target=" + target +
                ", page=" + page +
                ", size=" + size +
                ", createTimeFrom=" + createTimeFrom +
                ", createTimeTo=" + createTimeTo +
                '}';
    }
}
